import request from "@/utils/request";
import {ColumnMatchConditionVO} from "./types";

/**
 * 保存字段对应条件
 *
 * @param data
 */
export function saveColumnMatchCondition(data: ColumnMatchConditionVO) {
	return request({
		url: "/api/v1/columnMatchCondition",
		method: "post",
		data: data,
	});
}

/**
 * 获取字段对应条件
 *
 * @param queryParams
 */
export function getColumnMatchConditionList(matchId: number, sourceType: string) {
	return request({
		url: '/api/v1/columnMatchCondition/list/' + matchId + '/' + sourceType,
		method: 'get'
	});
}

/**
 * 删除字段对应条件
 *
 * @param ids
 */
export function deleteColumnMatchCondition(ids: string) {
	return request({
		url: '/api/v1/columnMatchCondition/' + ids,
		method: 'delete'
	});
}

